package com.atguigu.srb.core;

import org.apache.commons.lang3.exception.ExceptionUtils;
import org.junit.jupiter.api.Test;

/**
 * @author study
 * @version 1.0
 * @date 2021/5/6 13:42
 */
public class Error {
    @Test
    public void error() {
        try {
            int i = 1 / 0;
        } catch (Exception e) {
            // e.printStackTrace();
            // System.out.println("-------------");
            System.out.println(ExceptionUtils.getStackTrace(e));
        }

    }
}
